#!/bin/bash

cd `dirname $0`

if [ "$1" == "" ]
then
    message="Change of `date`"
else
    message=$1
fi

echo "looking for change ..."
hg status
echo
echo

hg pull -u
hg add
hg commit -m "$message"
hg push
